import scrapy


class GetsongsSpider(scrapy.Spider):
    name = "GetSongs"
    allowed_domains = ["qq.com"]
    start_urls = ["https://u.y.qq.com/cgi-bin/musicu.fcg"]

    def parse(self, response):
        # 对response进行处理
        print('------------->',response)
        print('------------->',response.url)
        print('------------->',response.headers) # 在响应头可以提取到cookie
        print('------------->',response.status)
        print('------------->',response.text)
